<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">
<style>
.form .row {margin-top:10px;}
</style>
</block>

<block name="main">
<div class="pd-20">
	
	<form action="{:u('orderadmin/detail_post')}" method="post" class="form form-horizontal validator_form close-dialog" id="form-article-add">
	<php>
	  $type = C('ORDER_TYPE');
	  if($info['status'] == 1) $status = '<span style="color:green">已支付</span>';
	  if($info['status'] == 2) $status = '<span style="color:red">未支付</span>';
	  if($info['status'] == 3) $status = '<span style="color:blue">已过期</span>';
	  $stustatus = array('laosheng'=>'老生','xinsheng'=>'新生');
	  </php>
  	<div class="row cl">
		<label class="form-label col-3 text-r">订单编号：</label>
		<div class="formControls col-8"><span>{$info.ddbh}</span></div>
	</div>
	<div class="row cl">
		<label class="form-label col-3 text-r">金额：</label>
		<div class="formControls col-8">{$info.total}</div>
	</div>
	<div class="row cl">
		<label class="form-label col-3 text-r">交易状态：</label>
		<div class="formControls col-8 f-20">{$status}</div>
	</div>
	<eq name="info['status']" value="1">
	<div class="row cl">
		<label class="form-label col-3 text-r">微信订单号：</label>
		<div class="formControls col-8">{$info.wxddh}</div>
	</div>
	</eq>
	<div class="row cl">
		<label class="form-label col-3 text-r">类型：</label>
		<div class="formControls col-8">{$type[$info['type']]}</div>
	</div>
	<div class="line mt-10"></div>
	<!-- 自定义支付 -->
	<eq name="info['type']" value="freepay">
		<div class="row cl">
			<label class="form-label col-3 text-r">备注：</label>
			<div class="formControls col-8">{$info.objectinfo}</div>
		</div>
	</eq>
	<!-- 考级报名 -->
	<eq name="info['type']" value="kjbm">
		<div class="row cl">
			<label class="form-label col-3 text-r">校区：</label>
			<div class="formControls col-8">{$info.xiaoqu.title}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">备注：</label>
			<div class="formControls col-8">{$info.objectinfo}</div>
		</div>
	</eq>
	<!-- 课程报名 -->
	<if condition="$info['type'] eq 'baoming' || $info['type'] eq 'midbm'">
		<div class="row cl">
			<label class="form-label col-3 text-r">学生姓名：</label>
			<div class="formControls col-8">{$info.stuname}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">出生日期：</label>
			<div class="formControls col-8">{$info.birthday}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">家长姓名：</label>
			<div class="formControls col-8">{$info.jzxm}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">电话：</label>
			<div class="formControls col-8">{$info.tel}</div>
		</div>
		<if condition="$info['type'] eq 'baoming'">
		<div class="row cl">
			<label class="form-label col-3 text-r">状态：</label>
			<div class="formControls col-8">{$stustatus[$info['studentstatus']]}</div>
		</div>
		</if>
		<div class="line mt-10"></div>
		<div class="row cl">
			<label class="form-label col-3 text-r">学期：</label>
			<div class="formControls col-8">{$info.term.title}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">校区：</label>
			<div class="formControls col-8">{$info.xiaoqu.title}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">课堂：</label>
			<div class="formControls col-8">{$info.kecheng.title}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">班级：</label>
			<div class="formControls col-8">{$info.lesson.lessonname}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">班级类型：</label>
			<div class="formControls col-8">{$info.classtype.title}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">班级对象：</label>
			<div class="formControls col-8">{$info.classtype.target1}-{$info.classtype.target2}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">上课时间：</label>
			<div class="formControls col-8">{$info.lesson.lessontime}</div>
		</div>
		<if condition="$info['detail']['remark']">
		<div class="row cl">
			<label class="form-label col-3 text-r">备注：</label>
			<div class="formControls col-8">{$info.detail.remark}</div>
		</div>
		</if>
	</if>
	<eq name="info['type']" value="tiyan">
		<if condition="$tiyan">
		<div class="row cl">
			<label class="form-label col-3 text-r">用户名：</label>
			<div class="formControls col-8">{$tiyan.stuname}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">电话：</label>
			<div class="formControls col-8">{$tiyan.tel}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">校区：</label>
			<div class="formControls col-8">{$tiyan.xiaoqu}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">班级：</label>
			<div class="formControls col-8">{$tiyan.banji}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">时间：</label>
			<div class="formControls col-8">{$tiyan.lesson}</div>
		</div>
		<if condition="$tiyan['remark']">
		<div class="row cl">
			<label class="form-label col-3 text-r">备注：</label>
			<div class="formControls col-8">{$tiyan.remark}</div>
		</div>
		</if>
		</if>
		<div class="row cl">
			<label class="form-label col-3 text-r">订单信息：</label>
			<div class="formControls col-8">{$info.objectinfo}</div>
		</div>
	</eq>
	<eq name="info['type']" value="qitatiyan">
		<if condition="$qitatiyan">
		<div class="row cl">
			<label class="form-label col-3 text-r">课程：</label>
			<div class="formControls col-8">{$qitatiyan.kecheng}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">姓名：</label>
			<div class="formControls col-8">{$qitatiyan.stuname}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">电话：</label>
			<div class="formControls col-8">{$qitatiyan.tel}</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3 text-r">校区：</label>
			<div class="formControls col-8">{$qitatiyan.xiaoqu}</div>
		</div>
		</if>
		<div class="row cl">
			<label class="form-label col-3 text-r">订单信息：</label>
			<div class="formControls col-8">{$info.objectinfo}</div>
		</div>
	</eq>
	<div class="line mt-10"></div>
		<!-- <div class="row cl">
			<label class="form-label col-2">订单状态：</label>
			<div class="formControls col-8">
			  	<label class="mr-10"><input type="radio" <if condition="$info.status eq 1">checked</if>  value="1" name="status">已支付</label>
			  	<label class="mr-10"><input type="radio"  value="2" <if condition="$info.status eq 2">checked</if> name="status">未支付</label>
			  	<label><input type="radio"  value="3" <if condition="$info.status eq 3">checked</if> name="status">已取消</label>
			</div>
		</div> -->
		<div class="row cl">
			<label class="form-label col-3">备注：</label>
			<div class="formControls col-9">
				<textarea name="remark" cols="" rows="" class="textarea"  placeholder="说点什么...最少输入10个字符" datatype="*10-100" dragonfly="true" nullmsg="备注不能为空！" onKeyUp="textarealength(this,200)">{$info.remark}</textarea>
				<p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
			</div>
		</div>
	  	<div class="row cl">
	    	<div class="col-9 col-offset-3">
	    		<input type="hidden" name="id" value="{$info.id}">
	      		<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
	    	</div>
	  	</div>
	</form>
</div>
</block>

<block name="script">
<script type="text/javascript">

</script>
</block>